# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version Feb 16 2016)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc
from scrap import Scrap
from check import Check

###########################################################################
## Class ScrapFrame
###########################################################################

class ScrapFrame(wx.Frame):
    def __init__(self, parent):
        wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition,
                          size=wx.Size(599, 380), style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL)

        self.SetSizeHintsSz(wx.DefaultSize, wx.DefaultSize)

        bSizer12 = wx.BoxSizer(wx.VERTICAL)

        bSizer13 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_textCtrl7 = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(600, 200), style=wx.TE_MULTILINE | wx.TE_READONLY)
        bSizer13.Add(self.m_textCtrl7, 0, wx.ALL, 5)

        bSizer12.Add(bSizer13, 0, wx.EXPAND, 5)

        bSizer14 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_staticText9 = wx.StaticText(self, wx.ID_ANY, u"请输入您想删除的料号", wx.DefaultPosition, wx.Size(220, 50), 0)
        self.m_staticText9.Wrap(-1)
        bSizer14.Add(self.m_staticText9, 0, wx.ALL, 5)

        self.m_textCtrl8 = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(150, 50), 0)
        bSizer14.Add(self.m_textCtrl8, 0, wx.ALL, 5)

        bSizer12.Add(bSizer14, 0, wx.EXPAND, 5)

        bSizer15 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_staticText10 = wx.StaticText(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(250, 50), 0)
        self.m_staticText10.Wrap(-1)
        bSizer15.Add(self.m_staticText10, 0, wx.ALL, 5)

        self.m_button3 = wx.Button(self, wx.ID_ANY, u"Ok", wx.DefaultPosition, wx.Size(100, 50), 0)
        bSizer15.Add(self.m_button3, 0, wx.ALL, 5)

        bSizer12.Add(bSizer15, 1, wx.EXPAND, 5)

        self.SetSizer(bSizer12)
        self.Layout()

        self.Centre(wx.BOTH)

        # Connect Events
        self.m_button3.Bind(wx.EVT_BUTTON, self.m_button3OnButtonClick)
        #############################################
        check=Check()
        self.m_textCtrl7.SetValue(check.return_value())

    def __del__(self):
        pass

    # Virtual event handlers, overide them in your derived class
    def m_button3OnButtonClick(self, event):
        scrap=Scrap(self.m_textCtrl8.GetValue())
        self.m_textCtrl7.SetValue(scrap.return_result())